<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../ht-css/style-q.css" />
    <title>退货单详情</title>
    <style>.icon-Star{
        color:red;
    }</style>
</head>
<body data-id="621">
<nav class="breadcrumb">退货申请单管理 <span class="c-gray en">&gt;</span> 退货申请单查询 <span class="c-gray en">&gt;</span> 退货申请单详情<a
        class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="form-member-add"  method="post">
        <div class="bg-1 bk-gray pd-20 mb-20">
            <div class="va-m lh-20 f-16 pb-15">
                <strong>状态：<span id="orderState">待审核</span></strong>
                <span class=" ">
              <a onclick="passCheck()" id="passCheck" class="btn btn-secondary radius size-S ml-20 powerButton 622" style="display: none;">审核通过</a>
              <a onclick="rejectCheck()" id="rejectCheck" class="btn btn-secondary radius size-S ml-20" style="display: none;">审核驳回</a>
              <a onclick="detailCancel()" id="detailCancel" class="btn btn-secondary radius size-S ml-20 powerButton 622" style="display: none;">取消</a>
              <a  onclick="relatedDocuments()" id="relatedDocumentsbtu"class="btn btn-secondary radius size-S ml-20 powerButton 622" style="display: none;">关联单据</a>
          </span>
            </div>
        </div>
        <div class="bg-1 bk-gray pd-20 mb-20">
            <div class="va-m lh-20 f-14 pb-15">
                <strong>基本信息</strong>
            </div>
            <div class="line"></div>
            <div class="pd-20 mb-20">
                <table>
                    <tr>
                        <td class="col-3-l">申请编号：<span id="askFor-code"></span></td>
                        <td class="col-3-1">订单号：<span id="order-code"></span>&nbsp;&nbsp;
                            &nbsp;<a onclick="checkOrder('订单详情','../channelorder/prepare-info.html')">查看订单</a></td>
                        <td class="col-3-1">类型：<span id="return-type"></span></td>
                    </tr>
                    <tr>
                        <td class="col-3-1">销售经理：<span id="sales-manager"></span></td>
                        <td class="col-3-1" id="errorTip" style="display: none"><span class="icon-Star">*</span>异常提示：该售后单申请数量与实际退货数量不一致，请核实后处理！</td>
                    </tr>
                </table>
            </div>
            <!--审核信息-->
            <div id="confirmInfo">
                <div class="va-m lh-20 f-14 pb-15">
                    <strong id="check">操作信息</strong>
                </div>
                <div class="line"></div>
                <div class="pd-20 mb-20">
                    <table>
                        <tr>
                            <td class="col-3-1">操作时间：<span id="audit-time"></span></td>
                            <td class="col-3-1">操作人：<span id="auditor"></span></td>
                        </tr>
                        <tr>
                            <td colspan="3" class="col-1-1">审核说明：<span id="audit-desc"></span></td>
                        </tr>
                    </table>
                </div>
            </div>
            <!--关闭信息-->
            <div id="closeInfo" style="display: none">
                <div class="va-m lh-20 f-14 pb-15">
                    <strong>关闭信息</strong>
                </div>
                <div class="line"></div>
                <div class="pd-20 mb-20">
                    <table>
                        <tr>
                            <td class="col-3-l">关闭时间：<span id="close-time"></span></td>
                            <td class="col-3-1">操作人：<span id="operator"></span></td>
                            <!--<td class="col-3-1">关闭原因：<span id="close-reason"></span></td>-->
                        </tr>
                        <tr>
                            <td colspan="3" class="col-1-1">关闭说明：<span id="close-intordoce"></span></td>
                        </tr>
                    </table>
                </div>
            </div>


            <div class="va-m lh-20 f-14 pb-15">
                <strong>退货申请信息</strong>
            </div>
            <div class="line"></div>
            <div class="pd-20 mb-20">
                <table>
                    <tr>
                        <td >退货原因：<span id="return-reason"></span>
                            <select style="width: 132px;" class="select" name="returnReason" id="returnReason" size="1">
                                <option value="0" selected>请选择</option>
                                <option value="10" selected>商品质量问题</option>
                                <option value="12">收到商品与网站展示不符(颜色、图片、规格、产地及详情描述)</option>
                                <option value="50">商品发错/少发/漏发</option>
                                <option value="13">客户原因无理由退货</option>
                                <option value="100">未按约定时间发货</option>
                                <option value="80">到货物流破损</option>
                                <option value="70">多买/买错不想要了</option>
                                <option value="14">资质问题</option>
                                <option value="90">发票问题</option>
                                <option value="11">其他原因</option>
                                <option value="53">货未集齐</option>
                            </select>
                        </td>

                        <td class="col-3-1">问题描述：<span id="refund-info"></span></td>

                       <!-- <td class="col-3-1"><span>取货方式：</span>
                            <select style="width: 132px;" class="select" name="get-type" onchange="returnsReasonall()" id="get-type" size="1">
                                <option value="" selected>请选择</option>
                                <option value="20">自行寄回</option>
                                <option value="10">上门取货</option>
                            </select>
                            &lt;!&ndash;<span id="get-type"></span>&ndash;&gt;
                        </td>-->




                    </tr>
                    <tr>
                        <td class="col-3-1"><span id="get-address-name">取货地址：</span><span id="get-address"></span></td>
                        <td class="col-3-1">申请时间：<span id="askFor-time"></span></td>
                        <td class="col-3-1">申请操作人：<span id="askFor-operator"></span></td>
                    </tr>
                    <tr >
                        <td class="col-3-1">凭证信息：</td>
                    </tr>
                    <tr>
                        <td class="col-3-1">前台退货原因：<span id="qreturn-reason"></span>
                    </tr>
                    <tr>
                        <td colspan="3" class="col-1-1" id="proofPics"></td>
                    </tr>
                    <tr>
                        <td class="col-3-1 returnGoods" style="display: none"><span class="icon-Star">*</span><span>取货方式：</span>
                            <select style="width: 132px;" class="select" name="returnReason" onchange="returnsReasonall()" id="returnsReason" size="1">
                                <option value="20">客户寄回</option>
                                <option value="10">上门取货</option>
                            </select>
                        </td>

                        <td class="col-3-1 returnGoods" id="relationOrders"  style="display: none"><span class="icon-Star">*</span><span>下次送货订单号：</span>
                            <span id="orderidall"></span><input type="button" id="relationButton" style="display: none" class="btn radius size-S ml-10" onclick="relationOrder()" value="关联">
                        </td>

                        <input style="display: none" value="" id="lng">
                        <input style="display: none" value="" id="lat">
                        <td class="col-5-2 returnGoods"  style="display: none"><span class="icon-Star">*</span><span>收货区域：</span>
                            <select style="width: 111px;" class="select" onchange="discountdatas(1)" name="brandclass" id="getProvinces" size="1">
                                <option value="" selected>请选择收货区域</option>
                            </select>

                            <select style="width: 111px;" class="select" onchange="discountdatas(2)" name="brandclass" id="getCitys"  size="1">
                                <option value="" selected>请选择收货区域</option>
                            </select>

                            <select style="width: 111px;white-space: pre" class="select" onchange="discountdatas(3)" name="brandclass" id="getAreas"  size="1">
                                <option value="" selected>请选择收货区域</option>
                            </select>
                            <select style="width: 111px;white-space: pre" class="select" name="brandclass" id="getCountys"  size="1">
                                <option value="" selected>请选择收货区域</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-3-1 returnGoods"  style="display: none"><span class="icon-Star">*</span><span>详细地址：</span>
                            <input id="detail_address" placeholder="请输入详细地址" maxlength="50">
                        </td>
                        <td class="col-3-1 returnGoods"  style="display: none">
                            <span class="icon-Star">*</span><span>联系人姓名：</span>
                            <input id="received_name" placeholder="请输入联系人姓名" maxlength="6" onkeyup="this.value=this.value.replace(/[^\u4e00-\u9fa5]/g,'')">


                        </td>
                        <td class="col-3-1 returnGoods"  style="display: none"><span class="icon-Star">*</span><span>联系人电话：</span>
                            <input id="received_telephone" placeholder="请输入联系人电话" maxlength="11"  onkeyup="this.value=this.value.replace(/\D/g,'')">
                        </td>

                    </tr>
                </table>
            </div>
            <div class="va-m lh-20 f-14 pb-15">
                <strong>商品信息</strong>
            </div>
            <!--展示主单信息-->
            <div class="pd-20 mb-20">
                <table class="table table-border table-bordered table-hover table-bg table-sort mt-10" id="datatable" style=" display: none">
                    <thead>
                    <tr class="text-c">
                        <th style="width: 300px;">商品</th>
                        <th>发货仓</th>
                        <th>单价</th>
                        <th>购买数量</th>
                        <th>出库数量</th>
                        <th>收货数量</th>
                        <th>申请退货数量</th>
                        <th>实退数量</th>
                        <th>实退商品单价</th>
                        <th>实退商品金额</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody class="shun">
                    </tbody>
                </table>
            </div>
            <!-- 展示子单信息-->
            <div id="subOrderTable"></div>
            <div id="refundInfo">
                <div class="va-m lh-20 f-14 pb-15">
                    <strong>退款信息</strong>
                </div>
                <div class="line"></div>
                <div class="pd-20 mb-20" >
                    <table>
                      <!--  <tr>
                            <td class="col-3-1">退款商品金额：<span id="returnSkuMoney"></span>元</td>
                            <td class="col-3-1" id="shippingFee">退货商品分摊运费：<span id="shipping_fee">
                            </span>元
                            </td>
                        </tr>-->
                        <!--<tr>-->
                            <!--<td class="col-3-1"><span class="icon-Star">*</span>服务费：<span id="serviceMoney"></span>-->
                                <!--<input id="serviceMoneyInput" value="0"  onblur="clearNoNum(this)"  style="display: none;width:50px;">元-->
                                <!--<a style="display: none;" id="taxdeduction" onclick="Taxdeduction();">扣税</a>                                -->
                                <!--<span style="color:red;margin-left: 20px;display: none;font-size: 5px" id="serviceMoneyNote">-->
                            <!--*不大于退货商品开票金额的15%</span>-->
                            <!--</td>-->
                            <!--<td>-->
                                <!--<span class="c-red pr-5">*</span>退运费金额：<span id="return_freight">0</span> 元-->
                                <!--<a style="margin-left: 10px" class="return_freight" onclick="setReturnFreight(1)">退运费</a>-->
                                <!--<a style="margin-left: 10px" class="return_freight" onclick="setReturnFreight(0)">不退运费</a>-->
                            <!--</td>-->
                            <!--<td class="col-3-1"><span class="icon-Star">*</span>取货收取运费：<span id="deliveryMoney"></span>-->
                                <!--<input id="deliveryMoneyInput" value="0" style="display: none;width:50px;">元</td>-->
                        <!--</tr>-->
                        <!--<tr><td class="col-3-1">应退金额：<span id="returnMoney"></span>元</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--&lt;!&ndash;<td class="col-3-1">退款账号：<span id="return-card-code"></span></td>&ndash;&gt;-->
                            <!--&lt;!&ndash;<td class="col-3-1">退款渠道：<span id="return-band"></span></td>&ndash;&gt;-->
                            <!--<td colspan="2"><span style="position:relative;bottom: 90px"><span class="icon-Star">*</span>退款备注：-->
                    <!--</span>-->
                                <!--<textarea name="" id="refundDesc" style="resize: none;width:400px;height:100px"-->
                                          <!--placeholder="请填写与客户确认的退款方式及其金额，方便财务/收银员实施退款操作"></textarea></td>-->
                        <!--</tr>-->
                        <tr>
                            <td>
                                <span class="icon-Star">*</span>退运费金额：<span id="return_freight">0</span> 元
                                <a style="margin-left: 10px" class="return_freight tui" onclick="setReturnFreight(1)">退运费</a>
                                <a style="margin-left: 10px" class="return_freight notui" onclick="setReturnFreight(0)">不退运费</a>
                                <span style="margin-left: 10px">退款金额：<span id="refunded_freight">0</span> 元</span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="position:relative;bottom: 90px"><span class="icon-Star">*</span>退款备注：</span>
                                <textarea name="" id="refundDesc" style="resize: none;width:400px;height:100px"
                                          placeholder="请填写与客户确认的退款方式及其金额，方便财务/收银员实施退款操作">

                            </textarea>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div style="height:100px;"><strong class="f-l">备注：</strong>
                <div class="f-l w-300 mr-20 orderRemark">
                <textarea name="NU" id="remark" class="textarea radius "  placeholder="请输入备注信息"
                          readonly="readonly"></textarea>
                </div>
             <span class=" ">  <div id="isSaveFalse" class="mt-50 pt-20 f-l" onclick="toEdit()"><a class="mr-20 powerButton 622">编辑</a></div></span>
                <div id="isSaveTrue" style="display:none" class="mt-50 pt-20 f-l"><a onclick="remarkToSave()" class="mr-20">保存</a><a onclick="toCancle()" class="mr-20">取消</a></div>
            </div>
        </div>

    </form>
    <!--关联订单号-->
    <div id="relationOrder" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;margin-left: -260px;">
        <div class="modal-dialog" style="top:50%;margin-top:-346px">
            <div class="modal-content radius" style="height:357px;width:666px;">
                <div class="" style="overflow-y: auto;max-height: 245px;height: 245px">
                    <table class="table table-border  table-hover table-bg table-sort mt-10" id="relationOrdertable">
                        <thead>
                        <tr >
                            <th style="width: 12%;">编号</th>
                            <th style="width: 17%;">订单号</th>
                            <th style="width: 12%;">订单状态</th>
                            <th style="width: 15%;">是否有退单</th>
                            <th>收货地址</th>
                        </tr>
                        </thead>
                        <tbody class="freight_by_ladders">
                        </tbody>
                    </table>
                </div>
                <div class="text-c" style="padding-top: 2%;position: inherit;">
                    <a onclick="relationOrderdetermine()" class="btn btn-secondary radius size-S mr-10">确定</a>
                    <a onclick="relationOrdercancel()" class="btn  radius size-S ">取消</a>
                </div>
            </div>
        </div>
    </div>
    <div id="relatedDocuments" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog" style="top:50%;margin-top:-412px">
            <div class="modal-content radius" style="height:357px;width:832px;">
                <div class="" style="overflow-y: auto;max-height: 245px;height: 245px">
                    <div class="modal-header"  style="height: 22px;">
                        <h3 class="modal-title text-c" style="float: left;">
                            关联单据</h3>
                        <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <table class="table table-border  table-hover table-bg table-sort mt-10" id="">
                        <thead>
                        <tr >
                            <th>选择</th>
                            <th>售后单号</th>
                            <th>我方订单号</th>
                            <th>客户订单号</th>
                            <th>来源</th>
                            <th>退货时间</th>
                            <th>商品编码</th>
                            <th>商品名称</th>
                            <th>规格型号</th>
                            <th>颜色</th>
                            <th>退货数量</th>
                        </tr>
                        </thead>
                        <tbody id="relatedDocumentstable">
                        </tbody>
                    </table>
                </div>
                <div class="text-c" style="padding-top: 2%;position: inherit;">
                    <a onclick="confirmconnection()" class="btn btn-secondary radius size-S mr-10">确认关联</a>
                    <a onclick="relatedDocumentscancel()" class="btn  radius size-S ">取消</a>
                </div>
            </div>
        </div>
    </div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../../ht-js/dockingplatform/channelaftersale/afterSaleService-returns.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script src="../../../ht-js/dynamicWarehouse.js?rev=@@hash"></script>
</body>
</html>